package com.ruoyi.school.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 专利申请参与表
 * @TableName pac_soft_patent_participation
 */
@TableName(value ="pac_soft_patent_participation")
@Data
public class PacSoftPatentParticipation implements Serializable {
    /**
     * 自增主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 专利申请ID（pac_soft_patent.id）
     */
    private Long outputId;

    /**
     * 参与者学生ID
     */
    private Long participantId;

    /**
     * 参与者学号
     */
    private String participantNum;

    /**
     * 参与者姓名
     */
    private String participantName;

    /**
     * 成员所在区队
     */
    private String participantArea;

    /**
     * 学业导师
     */
    private Long academicTeacherId;

    /**
     * 证明材料
     */
    private String acFile;

    /**
     * 证明材料格式
     */
    private String acFileType;

    /**
     * 参与序号
     */
    private Integer joinIndex;

    /**
     * 参与状态（1:申请中 2:已加入 3:已拒绝 4:已退出）'
     */
    private Integer status;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PacSoftPatentParticipation other = (PacSoftPatentParticipation) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOutputId() == null ? other.getOutputId() == null : this.getOutputId().equals(other.getOutputId()))
            && (this.getParticipantId() == null ? other.getParticipantId() == null : this.getParticipantId().equals(other.getParticipantId()))
            && (this.getParticipantNum() == null ? other.getParticipantNum() == null : this.getParticipantNum().equals(other.getParticipantNum()))
            && (this.getParticipantName() == null ? other.getParticipantName() == null : this.getParticipantName().equals(other.getParticipantName()))
            && (this.getParticipantArea() == null ? other.getParticipantArea() == null : this.getParticipantArea().equals(other.getParticipantArea()))
            && (this.getAcademicTeacherId() == null ? other.getAcademicTeacherId() == null : this.getAcademicTeacherId().equals(other.getAcademicTeacherId()))
            && (this.getAcFile() == null ? other.getAcFile() == null : this.getAcFile().equals(other.getAcFile()))
            && (this.getAcFileType() == null ? other.getAcFileType() == null : this.getAcFileType().equals(other.getAcFileType()))
            && (this.getJoinIndex() == null ? other.getJoinIndex() == null : this.getJoinIndex().equals(other.getJoinIndex()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOutputId() == null) ? 0 : getOutputId().hashCode());
        result = prime * result + ((getParticipantId() == null) ? 0 : getParticipantId().hashCode());
        result = prime * result + ((getParticipantNum() == null) ? 0 : getParticipantNum().hashCode());
        result = prime * result + ((getParticipantName() == null) ? 0 : getParticipantName().hashCode());
        result = prime * result + ((getParticipantArea() == null) ? 0 : getParticipantArea().hashCode());
        result = prime * result + ((getAcademicTeacherId() == null) ? 0 : getAcademicTeacherId().hashCode());
        result = prime * result + ((getAcFile() == null) ? 0 : getAcFile().hashCode());
        result = prime * result + ((getAcFileType() == null) ? 0 : getAcFileType().hashCode());
        result = prime * result + ((getJoinIndex() == null) ? 0 : getJoinIndex().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", outputId=").append(outputId);
        sb.append(", participantId=").append(participantId);
        sb.append(", participantNum=").append(participantNum);
        sb.append(", participantName=").append(participantName);
        sb.append(", participantArea=").append(participantArea);
        sb.append(", academicTeacherId=").append(academicTeacherId);
        sb.append(", acFile=").append(acFile);
        sb.append(", acFileType=").append(acFileType);
        sb.append(", joinIndex=").append(joinIndex);
        sb.append(", status=").append(status);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}